package day5;

/**
 * @author oldliu
 * @since 1.0
 */
public class StuTest {
    public static void main(String[] args) {
        Student s=new Student();
//        s.name="魏忠贤";
//        s.age=9990;
        s.setName("魏忠贤");
        s.setAge(9000);
        s.show();
        s.setAge(59);
        s.show();
        //s.show2();错误
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>");
        //Student s2=new Student(60.4F,77F,88F); 构造方法私有，不能调用
        //堵死。。。
        Student s3=new Student("马小波",9999,56.6F,66.7F,77.0F);
        s3.show();
    }
}
